package com.baidu.lib_leancloud.db

import android.content.Context
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStoreOwner


class RoomHelper private constructor() {

    companion object {
        var sharedFavoriteViewModel: FavoriteViewModel? = null
        var context: Context? = null

        fun init(context: Context) {
            this.context = context
        }
        fun initViewModel(owner: ViewModelStoreOwner) {
            sharedFavoriteViewModel = ViewModelProvider(owner).get(FavoriteViewModel::class.java)
        }

    }
}